package com.example.commonbiz

class UserRepository {
    suspend fun getUser(userId: Int): User? {
        return try {
            val response = RetrofitClient.apiService.getUser(userId)
            if (response.code == 200) {
                response.data
            } else {
                null
            }
        } catch (e: Exception) {
            null
        }
    }
}